import Latex from "react-latex-next"

export default function Label({ label }: { label: string }) {
  if (label.length >= 2 && label[0] === '$' && label[label.length - 1] === '$') {
    return <Latex>{label}</Latex>
  } else {
    return <label style={{ fontSize: '0.8125rem' }}>{label}</label>
  }
}
